import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}

// 商户NFR标签列表
export function getList(query) {
  return request({
    url: '/merchant/equity/card/tag/list',
    method: 'get',
    params: query
  })
}
//新增商户NFR标签
export function addTag(data) {
    return request({
      url: '/merchant/equity/card/tag',
      method: 'post',
      data
    })
}

//编辑商户NFR标签
export function editTag(data) {
    return request({
      url: '/merchant/equity/card/tag',
      method: 'put',
      data
    })
}

//删除商户NFR标签
export function deleteTag(id) {
    return request({
      url: '/merchant/equity/card/tag/delete/'+id,
      method: 'DELETE',
      
    })
}
//商户NFR标签详情
export function tagDetail(id) {
    return request({
      url: '/merchant/equity/card/tag/detail/'+id,
      method: 'get',
    })
}
